﻿@{
    Layout = "/Areas/Admin/Views/Shared/Manager.cshtml";
}
<!DOCTYPE html>
@section scripts{
    <script type="text/javascript">
        //这里写一些选择后的方法
    </script>
}
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>后台测试管理</title>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
   
    <script src="~/Content/js/jquery.easyui.min.js"></script>
</head>
@model Shumei.EFCore.Model.Course
<body>
    <div class="container">
        <form action="~/Admin/News/AddNews" method="post">
            <div class="form-group">
                <label for="news_name">新闻标题</label>
                <input name="Title" type="text" class="form-control" id="course_name" placeholder="无名">
            </div>
            <div class="form-group">
                <label for="news_name">栏目</label>
                <input class="easyui-combobox " name="News_CategoryId" style="width:200px;"
                       data-options="valueField:'Id',textField:'Text',url:' @Url.Action("GetCategory", "News") '" />
            </div>
            <div class="form-group">
                <label>新闻内容</label>
                <script name="Content" id="editor_container" type="text/plain" style="width:1024px;height:500px;">
                </script>
            </div>
            <button type="submit" class="btn btn-default">Submit</button>
        </form>
    </div>

    <script id="hied_editor" type="text/plain">
    </script>

    <script type="text/javascript" charset="utf-8" src="~/utf8-net/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/utf8-net/ueditor.all.min.js"> </script>
    <!--建议手动加在语言，避免在ie下有时因为加载语言失败导致编辑器加载失败-->
    <!--这里加载的语言文件会覆盖你在配置项目里添加的语言类型，比如你在配置项目里配置的是英文，这里加载的中文，那最后就是中文-->
    <script type="text/javascript" charset="utf-8" src="/utf8-net/lang/zh-cn/zh-cn.js"></script>
    <script type="text/javascript">
        var editor = UE.getEditor('editor_container', {
            toolbars: [
            [ 'source', 'undo', 'redo', 'bold'],
    ['italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc','simpleupload']]
        });
    </script>
</body>

</html>
